package com.woniuxy.carlife.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author fx
 * @ClassName:SaveServiceCategoryParam
 * @Description: 添加服务类别的参数param
 * @date 2021/4/10 16:33
 **/
@Data
@ApiModel(value = "添加服务类别的参数")
public class SaveServiceCategoryParam {

    @ApiModelProperty(value = "主键、自增")
    private Integer serviceCategoryId;

    @NotNull(message="类别名称不能为空")
    @ApiModelProperty(value = "类别名称")
    private String serviceCategoryName;

    @NotNull(message="类别等级不能为空")
    @ApiModelProperty(value = "类别等级")
    private Integer serviceCategoryLevel;

    @NotNull(message="对应的上级类别不能为空")
    @ApiModelProperty(value = "对应的上级类别")
    private Integer serviceCategorySuperior;
}
